<?php

//['middleware' => 'auth']
Route::group(['namespace' => 'Admin'],function(){
    Route::get('/admin','IndexController@index');
    /*Route::get('index','IndexController@a');
    Route::get('index','IndexController@b');*/


    //用户相关
    Route::resource('user','UserController');
	//栏目相关
    Route::resource('cat','CatController'); 
    //图片上传路由
    Route::resource('photo','PhotoController');

    // Route::resource('image','ImageController');   

    //用户相关
    Route::resource('ausers','AusersController');    

    //用户删除路由
    Route::post('user/delete/{id}','UserController@delete');
    //栏目删除路由
    Route::post('cat/delete/{cats_id}','CatController@delete');
    //退出路由
    Route::get('cat/logout', 'Admin\CatController@getLogout');

    //图片删除路由
    Route::post('photo/delete/{id}','PhotoController@delete');    

});
